package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLByteList;
import HLLib.base.HLGraphics;
import HLLib.game.HLSprite;
import HLLib.game.HLWorldScaled;

public class HLClassWorldScaled extends HLLibClass {
    public HLClassWorldScaled(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLWorldScaled();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLWorldScaled) self).Clear();
            break;
        }
        case 1: {
            ((HLWorldScaled) self).ClearImages();
            break;
        }
        case 2: {
            ((HLWorldScaled) self).CreateCamera();
            break;
        }
        case 3: {
            ((HLWorldScaled) self).DeleteCamera();
            break;
        }
        case 4: {
            ((HLWorldScaled) self).Render((HLGraphics)args.GetObject(0));
            break;
        }
        case 5: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).SpriteIsOut((HLSprite)args.GetObject(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLWorldScaled) self).SpriteIsOut((HLSprite)args.GetObject(0)));
            }
            break;
        }
        case 6: {
            ((HLWorldScaled) self).AddSpriteEX(args.GetInt(0), (HLSprite)args.GetObject(0));
            break;
        }
        case 7: {
            ((HLWorldScaled) self).AddSpriteToFirst(args.GetInt(0), (HLSprite)args.GetObject(0));
            break;
        }
        case 8: {
            ((HLWorldScaled) self).AddSprite((HLSprite)args.GetObject(0));
            break;
        }
        case 9: {
            ((HLWorldScaled) self).RemoveSpriteAt(args.GetInt(0), args.GetInt(1));
            break;
        }
        case 10: {
            ((HLWorldScaled) self).RemoveSpriteEX(args.GetInt(0), (HLSprite)args.GetObject(0));
            break;
        }
        case 11: {
            ((HLWorldScaled) self).RemoveSprite((HLSprite)args.GetObject(0));
            break;
        }
        case 12: {
            ((HLWorldScaled) self).ClearSprite();
            break;
        }
        case 13: {
            ((HLWorldScaled) self).ClearSpriteExceptedAt(args.GetInt(0));
            break;
        }
        case 14: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).SpriteGroupsTouchRectEX((HLByteList)args.GetObject(0), args.GetInt(0), (HLSprite)args.GetObject(1), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4), args.GetInt(5));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLWorldScaled) self).SpriteGroupsTouchRectEX((HLByteList)args.GetObject(0), args.GetInt(0), (HLSprite)args.GetObject(1), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4), args.GetInt(5)));
            }
            break;
        }
        case 15: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).SpriteGroupsTouchRect((HLByteList)args.GetObject(0), (HLSprite)args.GetObject(1), args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLWorldScaled) self).SpriteGroupsTouchRect((HLByteList)args.GetObject(0), (HLSprite)args.GetObject(1), args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4)));
            }
            break;
        }
        case 16: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).SpriteGroupsTouchPointEX((HLByteList)args.GetObject(0), args.GetInt(0), (HLSprite)args.GetObject(1), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLWorldScaled) self).SpriteGroupsTouchPointEX((HLByteList)args.GetObject(0), args.GetInt(0), (HLSprite)args.GetObject(1), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 17: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).SpriteGroupsTouchPoint((HLByteList)args.GetObject(0), (HLSprite)args.GetObject(1), args.GetInt(0), args.GetInt(1), args.GetInt(2));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLWorldScaled) self).SpriteGroupsTouchPoint((HLByteList)args.GetObject(0), (HLSprite)args.GetObject(1), args.GetInt(0), args.GetInt(1), args.GetInt(2)));
            }
            break;
        }
        case 18: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).SpriteGroupsTouchSpriteEX((HLByteList)args.GetObject(0), args.GetInt(0), (HLSprite)args.GetObject(1), args.GetInt(1), args.GetBoolean(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLWorldScaled) self).SpriteGroupsTouchSpriteEX((HLByteList)args.GetObject(0), args.GetInt(0), (HLSprite)args.GetObject(1), args.GetInt(1), args.GetBoolean(0)));
            }
            break;
        }
        case 19: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).SpriteGroupsTouchSprite((HLByteList)args.GetObject(0), (HLSprite)args.GetObject(1), args.GetBoolean(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLWorldScaled) self).SpriteGroupsTouchSprite((HLByteList)args.GetObject(0), (HLSprite)args.GetObject(1), args.GetBoolean(0)));
            }
            break;
        }
        case 20: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).TryMoveSprite2DEX((HLSprite)args.GetObject(0), args.GetInt(0), (HLByteList)args.GetObject(1), args.GetInt(1), args.GetBoolean(0), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLWorldScaled) self).TryMoveSprite2DEX((HLSprite)args.GetObject(0), args.GetInt(0), (HLByteList)args.GetObject(1), args.GetInt(1), args.GetBoolean(0), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 21: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).TryMoveSprite2D((HLSprite)args.GetObject(0), (HLByteList)args.GetObject(1), args.GetBoolean(0), args.GetInt(0), args.GetInt(1));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLWorldScaled) self).TryMoveSprite2D((HLSprite)args.GetObject(0), (HLByteList)args.GetObject(1), args.GetBoolean(0), args.GetInt(0), args.GetInt(1)));
            }
            break;
        }
        case 22: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).TryMoveSprite3DEX((HLSprite)args.GetObject(0), args.GetInt(0), (HLByteList)args.GetObject(1), args.GetInt(1), args.GetBoolean(0), args.GetInt(2), args.GetInt(3), args.GetInt(4));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLWorldScaled) self).TryMoveSprite3DEX((HLSprite)args.GetObject(0), args.GetInt(0), (HLByteList)args.GetObject(1), args.GetInt(1), args.GetBoolean(0), args.GetInt(2), args.GetInt(3), args.GetInt(4)));
            }
            break;
        }
        case 23: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).TryMoveSprite3D((HLSprite)args.GetObject(0), (HLByteList)args.GetObject(1), args.GetBoolean(0), args.GetInt(0), args.GetInt(1), args.GetInt(2));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLWorldScaled) self).TryMoveSprite3D((HLSprite)args.GetObject(0), (HLByteList)args.GetObject(1), args.GetBoolean(0), args.GetInt(0), args.GetInt(1), args.GetInt(2)));
            }
            break;
        }
        case 24: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).TryMoveSpriteBySpeedEX((HLSprite)args.GetObject(0), args.GetInt(0), (HLByteList)args.GetObject(1), args.GetInt(1), args.GetBoolean(0));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLWorldScaled) self).TryMoveSpriteBySpeedEX((HLSprite)args.GetObject(0), args.GetInt(0), (HLByteList)args.GetObject(1), args.GetInt(1), args.GetBoolean(0)));
            }
            break;
        }
        case 25: {
            if (resultOwnerObject == null) {
                ((HLWorldScaled) self).TryMoveSpriteBySpeed((HLSprite)args.GetObject(0), (HLByteList)args.GetObject(1), args.GetBoolean(0));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLWorldScaled) self).TryMoveSpriteBySpeed((HLSprite)args.GetObject(0), (HLByteList)args.GetObject(1), args.GetBoolean(0)));
            }
            break;
        }
        }
    }
}
